<?php
defined('SYSPATH') OR die('No direct access allowed.');
/**
 * pendidikan.php
 * @author ranuandra
 *
 * 12 Mar 2012 13:37:09
 *
 * 
 */

class Model_Mstpendidikan extends ORM
{
	protected $_has_many = array(
		'pelamarpendidikan'	=> array('model'	=> 'pelamarpendidikan'),
		'mstpelamar'		=> array('model'	=> 'mstpelamar'),
		'mstjurusan'		=> array('model'	=> 'mstjurusan'),
	
	);
	private $_field = array('pendidikan', 'flag');
	private $_form = array('pendidikan' => '', 'flag' => '');
	
	public $rules = array(
					'pendidikan' => array(
									array('min_length', array(':value', 0)),
								),
					'flag' => array(
									array('min_length', array(':value', 0)),
								),
	);
	
	public function getField()
	{
		return $this->_field;
	}
	
	public function getForm()
	{
		return $this->_form;
		
	}
	
	public function create_data($values)
	{
	    return $this->values($values, $this->_field)->create();
	}
}